package com.st.bottomnavigation.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;

import com.st.bottomnavigation.R;

public class DiscoverFragment extends Fragment {
    private static DiscoverFragment homeFragment;
    private DiscoverFragment() {
    }
    //单例创建
    public static DiscoverFragment getInstance(){
        if (homeFragment == null) return new DiscoverFragment();
        return homeFragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_discover, container, false);
    }
}